#!/bin/bash

#variable declariations
DIR="UGScalable";

# Sources-Extractor
echo "Extracting sources to '"$HOME/$DIR"'.";
echo;
echo -n "Extracting sources.(1 of 1)........................";
mkdir ../$DIR
cd ../$DIR
for folder in $FOLDERS
do
	mkdir $folder;
done

cd ../$PROJECT/$SOURCES
SCALABLE=`find ./ -name *.svg -type f`;                    #find all the files that are svg
cd ../../$DIR
for file in $SCALABLE                                      #for that files do...
do
	cp -f -p ../$PROJECT/$SOURCES/$file $file;
done

echo "[DONE]";
echo "The SVG sources has been copyied to '"$HOME/$DIR"'.";
echo;

exit 0
